﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="team-members">
    <xs:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" name="team-member">
          <xs:complexType mixed="true">
            <xs:all>
              <xs:element minOccurs="0" maxOccurs="1" name="display-alias" type="xs:string" />
              <xs:element minOccurs="0" maxOccurs="1" name="scheduler-alias" type="xs:string" />
              <xs:element minOccurs="0" maxOccurs="1" name="avatar">
                <xs:complexType>
                  <xs:attribute name="provider" type="xs:string" use="required" />
                  <xs:attribute name="key" type="xs:string" use="required" />
                </xs:complexType>
              </xs:element>
              <xs:element minOccurs="0" maxOccurs="1" name="time-zone" type="xs:string" />
              <xs:element minOccurs="0" maxOccurs="1" name="hourly-productivity-factor" type="xs:decimal" default="1" />
              <xs:element minOccurs="0" maxOccurs="1" name="dedicated-to-sprint" type="xs:boolean" default="true" />
              <xs:element minOccurs="0" maxOccurs="1" name="workday">
                <xs:complexType>
                  <xs:sequence minOccurs="1" maxOccurs="1">
                    <xs:element name="start" type="xs:time" minOccurs="1" maxOccurs="1" />
                    <xs:element name="end" type="xs:time" minOccurs="1" maxOccurs="1" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element minOccurs="0" maxOccurs="1" name="lunch">
                <xs:complexType>
                  <xs:sequence minOccurs="1" maxOccurs="1">
                    <xs:element name="start" type="xs:time" minOccurs="1" maxOccurs="1" />
                    <xs:element name="end" type="xs:time" minOccurs="1" maxOccurs="1" />
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:all>
            <xs:attribute name="name" type="xs:string" use="required" />
            <xs:attribute name="unassigned" type="xs:boolean" use="optional" default="false" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>